package cn.itqiqi.student_system_java.service.impl;

import cn.itqiqi.student_system_java.mapper.ClassMapper;
import cn.itqiqi.student_system_java.pojo.Class;
import cn.itqiqi.student_system_java.service.ClassService;
import cn.itqiqi.student_system_java.utils.ResultUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author kevin_琪琪
 * @version 1.0
 * @description
 * @date 2022-06-19 14:35
 */
@Service
public class ClassServiceImpl extends ServiceImpl<ClassMapper, Class> implements ClassService {

    @Autowired
    private ClassMapper classMapper;
    @Autowired
    private ResultUtils resultUtils;

    @Override
    public String getAllClassName() {
        List<Class> allClassName = classMapper.getAllClassName();
        return resultUtils.success(allClassName);
    }
}
